package threadDemo1.id_name;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 38917
 * Date: 2025-03-01
 * Time: 22:10
 */
public class ThreadDemo {
    public static void main(String[] args) {
        Thread thread = new Thread(()->{});
        //获取线程id
        System.out.println(thread.getId());
        //获取线程name
        System.out.println(thread.getName());
    }
}
